home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh -fb
- #
- # Split the normal guile-config script into pieces so we can insert
- # $ROOT where necessary. (You can't put variables on the '#!' line).
- #
- if [ -n "${ROOT}" ]; then
- export GUILE_LOAD_PATH=${GUILE_LOAD_PATH:-${ROOT}/usr/freeware/share/guile/${GUILE_VERSION:-1.4}}
- fi
-
- # guile behaves differently if stdout is a tty, so we can't reasonably
- # postprocess the output. If we could, we'd do something like this:
- # | sed -e 's#\(-[IL]\)\(/usr/freeware\)#\1${ROOT}\2#g' \
- # -e 's#freeware/lib32#freeware/${ABILIB:-lib32}#g'
-
- exec ${ROOT}/usr/freeware/bin/guile \
- -e main -s ${ROOT}/usr/freeware/share/guile/.scm/guile-config "$@"
-